Part Number Hot Search : 
2SD201 FAN7313 L1010 9072A IS42S16 MOC30 SW628 ADS123
Product Description
Full Text Search
 

To Download LIS2DH Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  november 2011 doc id 022516 rev 1 1/49 49 LIS2DH mems digital output motion sensor: ultra low-power high performance 3-axis ?femto? accelerometer features wide supply voltage, 1.71 v to 3.6 v independent ios supply (1.8 v) and supply voltage compatible ultra low-power mode consumption down to 2 a 2 g /4 g / 8 g / 16 g dynamically selectable full- scale i 2 c/spi digital output interface 2 independent programmable interrupt generators for free-fall and motion detection 6d/4d orientation detection ?sleep to wake? and ?return to sleep? function freefall detection motion detection embedded temperature sensor embedded fifo ecopack ? rohs and ?green? compliant applications motion activated functions display orientation shake control pedometer gaming and virtual reality input devices impact recognition and logging description the LIS2DH is an ultra low-power high performance three-axis linear accelerometer belonging to the ?femto? family, with digital i 2 c/spi serial interface standard output. the LIS2DH has dynamically user selectable full scales of 2 g /4 g / 8 g / 16 g and it is capable of measuring accelerations with output data rates from 1 hz to 5.3 khz. the self-test capability a llows the user to check the functioning of the sensor in the final application. the device may be configured to generate interrupt signals by two independent inertial wake-up/free-fall events as well as by the position of the device itself. the LIS2DH is available in small thin plastic land grid array package (lga) and is guaranteed to operate over an extended temperature range from -40 c to +85 c. lga-14 (2.0x2.0x1 mm) table 1. device summary order codes temperature range [ c] package packaging LIS2DH -40 to +85 lga-14 tray LIS2DHtr -40 to +85 lga-14 tape and reel www.st.com
contents LIS2DH 2/49 doc id 022516 rev 1 contents 1 block diagram and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 mechanical and electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 mechanical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.4 communication interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4.1 spi - serial peripheral interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4.2 i 2 c - inter ic control interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.5 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.6 terminology and functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.6.1 sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.6.2 zero-g level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.6.3 high resolution, normal mode, low power mode . . . . . . . . . . . . . . . . . . 14 2.6.4 self-test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.6.5 6d / 4d orientation detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.6.6 ?sleep to wake? and ?return to sleep? . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.7 sensing element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.8 ic interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.9 factory calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.10 fifo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.11 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3 application hints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.1 soldering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4 digital main blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1 fifo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.1 bypass mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
LIS2DH contents doc id 022516 rev 1 3/49 4.1.2 fifo mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.3 stream mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.4 stream-to-fifo mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1.5 retrieve data from fifo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5 digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1 i 2 c serial interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.1.1 i 2 c operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.2 spi bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.2.1 spi read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.2.2 spi write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.2.3 spi read in 3-wire mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6 register mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7 registers description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.1 status_aux (07h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.2 out_temp_l (0ch), out_temp_h (0dh) . . . . . . . . . . . . . . . . . . . . . . 30 7.3 int_counter (0eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.4 who_am_i (0fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.5 temp_cfg_reg (1fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.6 ctrl_reg1 (20h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.7 ctrl_reg2 (21h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.8 ctrl_reg3 (22h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.9 ctrl_reg4 (23h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.10 ctrl_reg5 (24h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 7.11 ctrl_reg6 (25h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 7.12 reference/datacapture (26h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.13 status_reg (27h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.14 out_x_l (28h), out_x_h (29h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.15 out_y_l (2ah), out_y_h (2bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.16 out_z_l (2ch), out_z_h (2dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.17 fifo_ctrl_reg (2eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.18 fifo_src_reg (2fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.19 int1_cfg (30h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
contents LIS2DH 4/49 doc id 022516 rev 1 7.20 int1_src (31h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 7.21 int1_ths (32h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 7.22 int1_duration (33h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.23 int2_cfg (34h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 7.24 int2_src (35h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 7.25 int2_ths (36h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.26 int2_duration (37h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 7.27 click_cfg (38h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 7.28 click_src (39h) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 7.29 click_ths (3ah) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7.30 time_limit (3bh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7.31 time_latency (3ch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7.32 time window(3dh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 7.33 act_ths(3eh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 7.34 act_dur (3fh) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 8 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
LIS2DH list of tables doc id 022516 rev 1 5/49 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 table 3. mechanical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 table 4. temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 5. electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 6. spi slave timing values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 7. i 2 c slave timing values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 8. absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 table 9. operating mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 10. turn-on time for operating mode change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 11. operating modes current consumption. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 12. serial interface pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 13. serial interface pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 table 14. sad+read/write patterns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 15. transfer when master is writing one byte to slave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 table 16. transfer when master is writing multiple bytes to slave:. . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 17. transfer when master is receiving (reading) one byte of data from slave: . . . . . . . . . . . . . 22 table 18. transfer when master is receiving (reading) multiple bytes of data from slave . . . . . . . . . 22 table 19. register address map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 table 20. status_reg_aux register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 table 21. status_reg_aux description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 22. int_counter register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 23. who_am_i register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 24. temp_cfg_reg register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 table 25. temp_cfg_reg description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 0 table 26. ctrl_reg1 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 27. ctrl_reg1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 28. data rate configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 29. ctrl_reg2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 30. ctrl_reg2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 31. high pass filter mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 32. ctrl_reg3 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 33. ctrl_reg3 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 34. ctrl_reg4 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 35. ctrl_reg4 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 36. self-test mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 37. ctrl_reg5 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 38. ctrl_reg5 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 39. ctrl_reg6 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 40. ctrl_reg6 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 41. reference register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 42. reference register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 table 43. status register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 44. status register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 45. fifo_ctrl_reg register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 46. fifo_ctrl_reg register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 47. fifo mode configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 48. fifo_src register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
list of tables LIS2DH 6/49 doc id 022516 rev 1 table 49. int1_cfg register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 50. int1_cfg description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 51. interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 52. int1_src register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 53. int1_src description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 54. int1_ths register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 55. int1_ths description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 56. int1_duration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 57. int1_duration description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 58. int2_cfg register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 59. int2_cfg description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 60. interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 61. int2_src register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 62. int2_src description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 63. int2_ths register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 64. int2_ths description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 65. int2_duration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 66. int2_duration description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 67. click_cfg register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 68. click_cfg description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 69. click_src register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 70. click_src description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 71. click_ths register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 72. click_src description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 73. time_limit register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 74. time_limit description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 75. time_latency register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 76. time_latency description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 77. time_window register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 table 78. time_window description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 79. time_window register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 80. time_window description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 81. act_dur register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 82. act_dur description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 83. lga-14 2x2x0.9 mechanical dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 84. revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
LIS2DH list of figures doc id 022516 rev 1 7/49 list of figures figure 1. block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 figure 2. pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 figure 3. spi slave timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 4. i 2 c slave timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 5. LIS2DH electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 6. read and write protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 7. spi read protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 figure 8. multiple bytes spi read protocol (2-byte example) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 figure 9. spi write protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 10. multiple bytes spi write protocol (2-byte example). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 11. spi read protocol in 3-wire mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 figure 12. lga-14 2x2x0.9 mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
block diagram and pin description LIS2DH 8/49 doc id 022516 rev 1 1 block diagram and pin description 1.1 block diagram figure 1. block diagram 1.2 pin description figure 2. pin connection charge amplifier y+ z+ y- z- a x+ x- i2c s pi c s s cl/ s pc s da/ s do/ s di s do/ s a0 control logic & interrupt gen. int 1 clock trimming circuit s temper a t u re s elf te s t control a/d converter int 2 mux 3 2 level fifo logic s en s or am1021 8 v1 (top view) direction of the detectable acceleration s y 1 x z vdd_io sc l/spc sda/sdi/sdo cs sdo/sa0 gnd int1 int2 res vdd res (bottom view) pin 1 indic a tor 4 1 5 7 11 8 gnd gnd 12 14 res am1021 8 v1
LIS2DH block diagram and pin description doc id 022516 rev 1 9/49 table 2. pin description pin# name function 1 scl spc i 2 c serial clock (scl) spi serial port clock (spc) 2 sda sdi sdo i 2 c serial data (sda) spi serial data input (sdi) 3-wire interface serial data output (sdo) 3 sdo sa0 spi serial data output (sdo) i 2 c less significant bit of the device address (sa0) 4cs spi enable i2c/spi mode selection (1: spi idle mode / i2c communication enabled; 0: spi communication mode / i2c disabled) 5 int2 intterupt pin 2 6 int1 intterupt pin 1 7 vdd_io power supply for i/o pins 8 vdd power supply 9 gnd 0 v supply 10 res connect to gnd 11 res connect to gnd 12-14 res connect to gnd
mechanical and electrical specifications LIS2DH 10/49 doc id 022516 rev 1 2 mechanical and electrical specifications 2.1 mechanical characteristics @ vdd = 2.5 v, t = 25 c unless otherwise noted (a) a. the product is factory calibrated at 2.5 v. the ope rational power supply range is from 1.71v to 3.6 v. table 3. mechanical characteristics symbol parameter test conditions min. typ. (1) max. unit fs measurement range (2) fs bit set to 00 2.0 g fs bit set to 01 4.0 fs bit set to 10 8.0 fs bit set to 11 16.0 so sensitivity fs bit set to 00; normal mode 4 mg/digit fs bit set to 00; high resolution mode 1 fs bit set to 00; low power mode 16 fs bit set to 01; normal mode 8 mg/digit fs bit set to 01; high resolution mode 2 fs bit set to 01; low power mode 32 fs bit set to 10; normal mode 16 mg/digit fs bit set to 10; high resolution mode 4 fs bit set to 10; low power mode 64 fs bit set to 11; normal mode 48 mg/digit fs bit set to 11; high resolution mode 12 fs bit set to 11; low power mode 192 tcso sensitivity change vs temperature fs bit set to 00 0.01 %/c ty o f f typical zero- g level offset accuracy (3),(4) fs bit set to 00 40 m g
LIS2DH mechanical and electrical specifications doc id 022516 rev 1 11/49 2.2 temperature sensor characteristics @ vdd =2.5 v, t=25 c unless otherwise noted (b) tcoff zero- g level change vs temperature max delta from 25 c 0.5 m g /c vst self-test output change (5),(6),(7) fs bit set to 00 x axis; normal mode 17 360 lsb fs bit set to 00 y axis; normal mode 17 360 lsb fs bit set to 00 z axis; normal mode 17 360 lsb to p operating temperature range -40 +85 c 1. typical specificat ions are not guaranteed. 2. verified by wafer level test and measur ement of initial offset and sensitivity. 3. typical zero- g level offset value after msl3 preconditioning. 4. offset can be eliminated by enablin g the built-in high pass filter. 5. the sign of ?self-test out put change? is defined by ctr l_reg4 st bit, for all axes. 6. ?self-test output change? is defined as the absolute value of: output[lsb] (self test enabled) - output[lsb] (self test disabled) . 1lsb=4mg at 10bit representation, 2 g full-scale 7. after enabling st, correct data is obtained after two samples ( low power mode / normal mode) or after eight samples (high resolution mode). table 3. mechanical characteristics (continued) symbol parameter test conditions min. typ. (1) max. unit b. the product is factory calibrated at 2.5 v. temperatur e sensor operation is guaranteed in the range 2 v - 3.6 v table 4. temperature sensor characteristics symbol parameter min. typ. (1) 1. typical specificat ions are not guaranteed. max. unit tsdr temperature sensor output change vs temperature 1 digit/c (2) 2. 8-bit resolution. todr temperature refresh rate odr (3) 3. refer to table 28: data rate configuration . hz top operating temperature range -40 +85 c
mechanical and electrical specifications LIS2DH 12/49 doc id 022516 rev 1 2.3 electrical characteristics @ vdd = 2.5 v, t = 25 c unless otherwise noted (c) c. the product is factory calibrated at 2.5 v. the ope rational power supply range is from 1.71 v to 3.6 v. table 5. electrical characteristics symbol parameter test conditions min. typ. (1) max. unit vdd supply voltage 1.71 2.5 3.6 v vdd_io i/o pins supply voltage (2) 1.71 vdd+0.1 v idd current consumption in normal mode 50 hz odr 11 a idd current consumption in normal mode 1 hz odr 2 a iddlp current consumption in low-power mode 50 hz odr 6 a iddpdn current consumption in power- down mode 0.5 a vih digital high level input voltage 0.8*vdd_io v vil digital low level input voltage 0.2*vdd_io v voh high level output voltage 0.9*vdd_io v vol low level output voltage 0.1*vdd_io v top operating temperature range -40 +85 c 1. typical specification are not guaranteed. 2. it is possible to remove vdd maintaining vdd_io withou t blocking the communication busse s, in this condition the measurement chain is powered off.
LIS2DH mechanical and electrical specifications doc id 022516 rev 1 13/49 2.4 communication interface characteristics 2.4.1 spi - serial peripheral interface subject to general operating conditions for vdd and top. figure 3. spi slave timing diagram (d) 3. when no communication is on-going, data on sdo is driven by inte rnal pull-up resistors table 6. spi slave timing values symbol parameter value (1) unit min max tc(spc) spi clock cycle 100 ns fc(spc) spi clock frequency 10 mhz tsu(cs) cs setup time 5 ns th(cs) cs hold time 20 tsu(si) sdi input setup time 5 th(si) sdi input hold time 15 tv(so) sdo valid output time 50 th(so) sdo output hold time 5 tdis(so) sdo output disable time 50 1. values are guaranteed at 10 mhz clock fr equency for spi with both 4 and 3 wires, based on characterization results, not tested in production d. measurement points are done at 0.2vdd_io and 0.8vdd_io, for both input and output port. spc cs sdi sdo t su(cs) t v(so) t h(so) t h(si) t su(si) t h(cs) t dis(so) t c(spc) msb in msb out lsb out lsb in (3) (3) (3) (3) (3) (3) (3) (3)
mechanical and electrical specifications LIS2DH 14/49 doc id 022516 rev 1 2.4.2 i 2 c - inter ic control interface subject to general operating conditions for vdd and top. figure 4. i 2 c slave timing diagram (e) table 7. i 2 c slave timing values symbol parameter i 2 c standard mode (1) i 2 c fast mode (1) unit min max min max f (scl) scl clock frequency 0 100 0 400 khz t w(scll) scl clock low time 4.7 1.3 s t w(sclh) scl clock high time 4.0 0.6 t su(sda) sda setup time 250 100 ns t h(sda) sda data hold time 0 3.45 0.01 0.9 s t r(sda) t r(scl) sda and scl rise time 1000 20 + 0.1c b (2) 300 ns t f(sda) t f(scl) sda and scl fall time 300 20 + 0.1c b ( 2) 300 t h(st) start condition hold time 4 0.6 s t su(sr) repeated start condition setup time 4.7 0.6 t su(sp) stop condition setup time 4 0.6 t w(sp:sr) bus free time between stop and start condition 4.7 1.3 1. data based on standard i 2 c protocol requirement, not tested in production. 2. cb = total capacitance of one bus line, in pf. e. measurement points are done at 0.2vdd_io and 0.8vdd_io, for both port. spc cs sdi sdo t su(cs) t v(so) t h(so) t h(si) t su(si) t h(cs) t dis(so) t c(spc) msb in msb out lsb out lsb in (3) (3) (3) (3) (3) (3) (3) (3)
LIS2DH mechanical and electrical specifications doc id 022516 rev 1 15/49 2.5 absolute maximum ratings stresses above those listed as ?absolute ma ximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device under these conditions is not implied. exposure to maximum rating conditions for extended periods may affect device reliability. note: supply voltage on any pin should never exceed 4.8 v table 8. absolute maximum ratings symbol ratings maximum value unit vdd supply voltage -0.3 to 4.8 v vdd_io i/o pins supply voltage -0.3 to 4.8 v vin input voltage on any control pin (cs, scl/spc, sda/sdi/sdo, sdo/sa0) -0.3 to vdd_io +0.3 v a pow acceleration (any axis, powered, vdd = 2.5 v) 3000 g for 0.5 ms 10000 g for 0.1 ms a unp acceleration (any axis, unpowered) 3000 g for 0.5 ms 10000 g for 0.1 ms t op operating temperature range -40 to +85 c t stg storage temperature range -40 to +125 c esd electrostatic discharge protection 2 (hbm) kv this is a mechanical shock sensitive device, improper handling can cause permanent damage to the part this is an esd sensitive device, improper handling can cause permanent damage to the part
mechanical and electrical specifications LIS2DH 16/49 doc id 022516 rev 1 2.6 terminology and functionality terminology 2.6.1 sensitivity sensitivity describes the gain of the sensor and can be determined e.g. by applying 1 g acceleration to it. as the sensor can measur e dc accelerations this can be done easily by pointing the axis of interest towards the center of the earth, noting the output value, rotating the sensor by 180 degrees (pointing to the sky) and noting the output value again. by doing so, 1 g acceleration is applied to the sensor. subtracting the larger output value from the smaller one, and dividing the result by 2, leads to the actual sensitivity of the sensor. this value changes very little over temperature and also time. the sensitivity tolerance describes the range of sensitivities of a large population of sensors. 2.6.2 zero- g level zero- g level offset (tyoff) describes the deviation of an actual output signal from the ideal output signal if no acceleration is present. a sensor in a steady state on a horizontal surface will measure 0 g in x axis and 0 g in y axis whereas the z axis will measure 1 g . the output is ideally in the middle of the dynamic range of the sensor (content of out registers 00h, data expressed as 2?s complement number). a deviation from ideal value in this case is called zero- g offset. offset is to some extent a result of stress to mems sensor and therefore the offset can slightly change afte r mounting the sensor onto a printed circuit board or exposing it to extensive mechanical stress. offset changes little over temperature, see ?zero- g level change vs. temperature?. the zero- g level tolerance (tyoff) describes the standard deviation of the range of zero- g levels of a population of sensors. functionality 2.6.3 high resolution, normal mode, low power mode the LIS2DH provides three different operating modes respectively reported as high resolution mode , normal mode and low power mode . the table below reported summarizes how to select among the different operating modes. table 9. operating mode selection operating mode ctrl_reg1[3] (lpen bit) ctrl_reg4[3] (hr bit) bw [hz] turn-on time [ms] so @ 2g [mg/digit] low power mode (8 bit data output) 1 0 odr/2 1 16 normal mode(10 bit data output) 0 0 odr/2 1.6 4 high resolution (12 bit data output) 0 1 odr/9 7/odr 1 not allowed 1 1 -- -- --
LIS2DH mechanical and electrical specifications doc id 022516 rev 1 17/49 the turn-on time to change from all operating mode is reported into table 10.: turn-on time for operating mode change . 2.6.4 self-test self-test allows the user to check the sensor functionality without moving it. when the self- test is enabled an actuation force is applied to the sensor, simulating a definite input acceleration. in this case the sensor outputs will exhibit a change in their dc levels which are related to the selected full scale through the device sensitivity. when self-test is activated, the device output level is given by the algebraic sum of the signals produced by the acceleration acting on the sensor and by th e electrostatic test-force. if the output signals change within the amplitude specified inside ta b l e 3 , then the sensor is working properly and the parameters of the interface chip are within the defined specifications. table 10. turn-on time for operating mode change operating mode change turn-on tim [ms] 12-bit mode to 8 bit mode 1/odr 12-bit mode to 10 bit mode 1/odr 10-bit mode to 8 bit mode 1/odr 10-bit mode to 12 bit mode 7/odr 8-bit mode to 10 bit mode 1/odr 8-bit mode to 12 bit mode 7/odr table 11. operating modes current consumption operating mode [hz] low power mode (8 bit data output) [ a] normal mode (10 bit data output) [ a] high resolution (12 bit data output) [ a] 1222 10 3 4 4 25 4 6 6 50 6 11 11 100 10 20 20 200 18 38 38 400 36 73 73 1344 -- 185 185 1620 100 -- -- 5376 185 -- --
mechanical and electrical specifications LIS2DH 18/49 doc id 022516 rev 1 2.6.5 6d / 4d orientation detection the LIS2DH include 6d / 4d orientation detection. 6d / 4d orientation recognition in this configuration the interrupt is generated when the device is stable in a known direction. in 4d configuration z axis position detection is disable. 2.6.6 ?sleep to wake? and ?return to sleep? the LIS2DH can be programmed to automatically switch to low power mode upon recognition of a determined event. once the event condition is over, the device returns back to the preset normal or high resolution mode. to enable this function the desired threshold value must be stored inside act_ths(3eh) registers while the duration value written inside act_dur(3fh) registers. when acceleration module becomes lower than the treshold value, the device automatically switches to low power mode (10hz odr). during this condit ion, odrx bits and lpen bit inside ctrl_reg1 (20h) and hr bit in ctrl_reg3 (22h) are not considered. as soon as the acceleration goes back over the threshold, the systems restores the operating mode and odrs as for ctrl_reg1 (20h) and ctrl_reg3 (22h) settings. 2.7 sensing element a proprietary process is used to create a surface micro-machined accelerometer. the technology allows carring out suspended silicon structures which are attached to the substrate in a few points called anchors and are free to move in the direction of the sensed acceleration. to be compatible with the traditional packaging techniques a cap is placed on top of the sensing element to avoid blocking the moving parts during the moulding phase of the plastic encapsulation. when an acceleration is applied to the sensor the proof mass displaces from its nominal position, causing an imbalance in the capacit ive half-bridge. this imbalance is measured using charge integration in response to a voltage pulse applied to the capacitor. at steady state the nominal value of the capacitors are few pf and when an acceleration is applied the maximum variation of the capacitive load is in the ff range. 2.8 ic interface the complete measurement chain is composed by a low-noise capacitive amplifier which converts the capacitive unbalancing of the mems sensor into an analog voltage that is finally available to the user by an analog-to-digital converter. the acceleration data may be accessed through an i 2 c/spi interface thus making the device particularly suitable for direct interfacing with a microcontroller. the LIS2DH features a data-ready signal (rdy) which indicates when a new set of measured acceleration data is available thus simplifying data synchronization in the digital system that uses the device.
LIS2DH mechanical and electrical specifications doc id 022516 rev 1 19/49 the LIS2DH may also be configured to generate an inertial wake-up and free-fall interrupt signal accordingly to a programmed acceleration event along the enabled axes. both free- fall and wake-up can be available simultaneously on two different pins. 2.9 factory calibration the ic interface is factory calibrated for sensitivity (so) and zero- g level (tyoff). the trimming values are stored inside the device in a non volatile memory. any time the device is turned on, the trimming parameters are downloaded into the registers to be used during the active operation. this allows to use the device without further calibration. 2.10 fifo the LIS2DH contains a 10 bit, 32-level fifo. buffered output allows 4 operation modes: fifo, stream, trigger and fifo bypass. where fifo bypass mode is activated fifo is not operating and remains empty. in fifo mode, data from acceleration detection on x, y, and z- axes measurements are stored in fifo. 2.11 temperature sensor the LIS2DH is supplied with an internal temperature sensor. temperature data can be enabled by setting the temp_en bit of the temp_cfg_reg register to 1. to retrieve the temperature sensor data bdu bit on ctrl_reg4 (23h) must be set to ?1?. both out_temp_h and out_temp_l registers must be read. temperature data is stored inside out_temp_h as 2?s complement data in 8 bit format left justified.
application hints LIS2DH 20/49 doc id 022516 rev 1 3 application hints figure 5. LIS2DH electrical connection the device core is supplied through vdd line while the i/o pads are supplied through vdd_io line. power supply decoupling capacitors (100 nf ceramic, 10 f aluminum) should be placed as near as possible to the pi n 8 of the device (common design practice). all the voltage and ground supplies must be present at the same time to have proper behavior of the ic (refer to figure 5 ). it is possible to re move vdd maintaining vdd_io without blocking the communication bus, in this condition the measurement chain is powered off. the functionality of the device and the measured acceleration data is selectable and accessible through the i 2 c or spi interfaces.when using the i 2 c, cs must be tied high. the functions, the threshold and the timing of the two interrupt pins (int1 and int2) can be completely programmed by the user through the i 2 c/spi interface. 3.1 soldering information the lga package is compliant with the ecopack ? , rohs and ?green? standard. it is qualified for soldering heat resist ance according to jedec j-std-020. leave ?pin 1 indicator? unconnected during soldering. land pattern and soldering recommendations are available at www.st.com . vdd_io digit a l s ign a l from/to s ign a l controller. s ign a l ?s level s a re defined b y proper s election of vdd_io vdd_io s cl/ s pc s da/ s di/ s do c s s do/ s a0 gnd int1 int2 vdd pin 1 indic a tor 4 1 5 7 11 8 gnd gnd 12 14 10 f vdd 100nf gnd gnd am10220v1
LIS2DH digital main blocks doc id 022516 rev 1 21/49 4 digital main blocks 4.1 fifo the LIS2DH embeds a 32-slot data fifo for each of the three output channels, x, y and z. this allows a consistent power saving for the system, since the host processor does not need to continuously poll data from the sensor, but it can wakeup only when needed and burst the significant data out from the fifo. this buffer can work accordingly to four different modes: bypass mode, fifo mode, stream mode and stream-to-fifo mode. each mode is selected by the fifo_mode bits into the fifo_ctrl_reg (2e). programmable watermark level, fifo_empty or fifo_full events can be enabled to generate dedicated interrupts on int1/2 pin (configuration through fifo_cfg_reg). 4.1.1 bypass mode in bypass mode, the fifo is not operational and for this reason it remains empty. as described in the next figure, for each channel only the first address is used. the remaining fifo slots are empty. 4.1.2 fifo mode in fifo mode, data from x, y and z channels are stored into the fifo. a watermark interrupt can be enabled (fifo_wtmk_en bit into fifo_ctrl_reg (2e) in order to be raised when the fifo is filled to the level specified into the fifo _wtmk_level bits of fifo_ctrl_reg (2e). the fi fo continues filling until it is fu ll (32 slots of data for x, y and z). when full, the fifo stops collecting data from the input channels. 4.1.3 stream mode in the stream mode, data from x, y and z measurement are stored into the fifo. a watermark interrupt can be enabled and set as in the fifo mode.the fifo continues filling until it?s full (32 slots of data for x, y and z). when full, the fifo discards the older data as the new arrive. 4.1.4 stream-to-fifo mode in stream-to_fifo mode, data from x, y and z measurement are stored into the fifo. a watermark interrupt can be enabled (fifo_wtmk_en bit into fifo_ctrl_reg) in order to be raised when the fifo is filled to the level specified into the fifo_wtmk_level bits of fifo_ctrl_reg. the fifo continues filling until it?s full (32 slots of 10 bit for for x, y and z). when full, the fifo discards the older data as the new arrive. once trigger event occurs, the fifo starts operating in fifo mode. 4.1.5 retrieve data from fifo fifo data is read through out_x (addr reg 29h), out_y (addr reg 2bh) and out_z (addr reg 2dh). when the fifo is in stream, trigger or fifo mode, a read operation to the out_x, out_y or out_z regiters provides the data stored into the fifo. each time data is read from the fifo, the oldest x, y and z data are placed into the out_x, out_y and out_z registers and both single read and read_burst operations can be used.
digital main blocks LIS2DH 22/49 doc id 022516 rev 1 the reading address is automatically updated by the device and it rolls back to 0x28 when register 0x2d is reached. in order to read all fifo levels in a multiple byte reading,192 bytes (6 output registers by 32 levels) have to be read.
LIS2DH digital interfaces doc id 022516 rev 1 23/49 5 digital interfaces the registers embedded inside the LIS2DH may be accessed through both the i 2 c and spi serial interfaces. the latter may be sw configured to operate either in 3-wire or 4-wire interface mode. the serial interfaces are mapped onto the same pads. to select/exploit the i 2 c interface, cs line must be tied high (i.e. connected to vdd_io). 5.1 i 2 c serial interface the LIS2DH i 2 c is a bus slave. the i 2 c is employed to write data into registers whose content can also be read back. the relevant i 2 c terminology is given in the table below. there are two signals associated with the i 2 c bus: the serial clock line (scl) and the serial data line (sda). the latter is a bidirectiona l line used for sending and receiving the data to/from the interface. both the lines must be connected to vdd_io through external pull-up resistor. when the bus is free both the lines are high. the i 2 c interface is compliant wit h fast mode (400 khz) i 2 c standards as well as with the normal mode. table 12. serial interface pin description pin name pin description cs spi enable i2c/spi mode selection (1: spi idle mode / i2c communication enabled; 0: spi communication mode / i2c disabled) scl spc i 2 c serial clock (scl) spi serial port clock (spc) sda sdi sdo i 2 c serial data (sda) spi serial data input (sdi) 3-wire interface serial data output (sdo) sa0 sdo i 2 c less significant bit of the device address (sa0) spi serial data output (sdo) table 13. serial interface pin description term description transmitter the device which sends data to the bus receiver the device which receives data from the bus master the device which initiates a transfer, generates clock signals and terminates a transfer slave the device addressed by the master
digital interfaces LIS2DH 24/49 doc id 022516 rev 1 5.1.1 i 2 c operation the transaction on the bus is started through a start (st) signal. a start condition is defined as a high to low transition on the data line while the scl line is held high. after this has been transmitted by the master, the bus is considered busy. the next byte of data transmitted after the start condition contains the address of the slave in the first 7 bits and the eighth bit tells whether the master is receiving data from the slave or transmitting data to the slave. when an address is sent, each device in the system compares the first seven bits after a start condition with its address. if they match, the device considers itself addressed by the master. the slave address (sad) associated to the LIS2DH is 001100xb. sdo / sa0 pad can be used to modify less significant bit of the devi ce address. if sa0 pad is connected to voltage supply, lsb is ?1? (address 0011001b) else if sa0 pad is connected to ground, lsb value is ?0? (address 0011000b). this solution permits to connect and address two different accelerometers to the same i 2 c lines. data transfer with acknowledge is mandatory. the transmitter must release the sda line during the acknowledge pulse. the receiver must then pull the data line low so that it remains stable low during the high period of the acknowledge clock pulse. a receiver which has been addressed is obliged to generate an acknowledge after each byte of data received. the i 2 c embedded inside the LIS2DH behaves like a slave device and the following protocol must be adhered to. after the start condition (st) a slave address is sent, once a slave acknowledge (sak) has be en returned, a 8-bit sub-address (sub) is transmitted: the 7 lsb represent the actual register address while the msb enables address auto increment. if the msb of the sub field is ?1?, the sub (register address) is automatically increased to allow multiple data read/write. the slave address is completed with a read/write bit. if the bit was ?1? (read), a repeated start (sr) condition must be issued after the two sub-address bytes; if the bit is ?0? (write) the master will tran smit to the slave with direction unchanged. ta bl e explains how the sad+read/write bit pattern is composed, listing all the possible configurations. table 14. sad+read/write patterns command sad[6:1] sad[0] = sa0 r/w sad+r/w read 001100 0 1 00110001 (31h) write 001100 0 0 00110000 (30h) read 001100 1 1 00110011 (33h) write 001100 1 0 00110010 (32h) table 15. transfer when master is writing one byte to slave master st sad + w sub data sp slave sak sak sak
LIS2DH digital interfaces doc id 022516 rev 1 25/49 data are transmitted in byte format (data). each data transfer contains 8 bits. the number of bytes transferred per transfer is unlimited. data is transferred with the most significant bit (msb) first. if a receiver can?t receive another complete byte of data until it has performed some other function, it can hold the clock line, scl low to force the transmitter into a wait state. data transfer only continues when the receiver is ready for another byte and releases the data line. if a slave receiver doesn?t acknowledge the slave address (i.e. it is not able to receive because it is performing some real time function) the data line must be left high by the slave. the master can then abort the transfer. a low to high transition on the sda line while the scl line is high is defined as a stop condition. each data transfer must be terminated by the generation of a stop (sp) condition. in order to read multiple bytes, it is necessary to assert the most significant bit of the sub- address field. in other words, sub(7) must be equal to 1 while sub(6-0) represents the address of first register to be read. in the presented communication format mak is master acknowledge and nmak is no master acknowledge. 5.2 spi bus interface the LIS2DH spi is a bus slave. the spi allows to write and read the registers of the device. the serial interface interacts with the outside world with 4 wires: cs , spc , sdi and sdo . table 16. transfer when master is writing multiple bytes to slave: master st sad + w sub data data sp slave sak sak sak sak table 17. transfer when master is receiving (reading) one byte of data from slave: master st sad + w sub sr sad + r nmak sp slave sak sak sak data table 18. transfer when master is receiving (reading) multiple bytes of data from slave master st sad+w sub sr sad+r mak mak nmak sp slave sak sak sak data data data
digital interfaces LIS2DH 26/49 doc id 022516 rev 1 figure 6. read and write protocol cs is the serial port enable and it is controlled by the spi master. it goes low at the start of the transmission and goes back high at the end. spc is the serial port clock and it is controlled by the spi master. it is stopped high when cs is high (no transmission). sdi and sdo are respectively the serial port data input and output. those lines are driven at the falling edge of spc and should be captured at the rising edge of spc . both the read register and write register commands are completed in 16 clock pulses or in multiple of 8 in case of multiple bytes read/wr ite. bit duration is the time between two falling edges of spc . the first bit (bit 0) starts at the first falling edge of spc after the falling edge of cs while the last bit (bit 15, bit 23, ...) starts at the last falling edge of spc just before the rising edge of cs . bit 0 : rw bit. when 0, the data di(7:0) is written into the device. when 1, the data do(7:0) from the device is read. in latter case, the chip will drive sdo at the start of bit 8. bit 1 : ms bit. when 0, the address will remain unch anged in multiple r ead/write commands. when 1, the address is auto incremented in multiple read/write commands. bit 2-7 : address ad(5:0). this is the address field of the indexed register. bit 8-15 : data di(7:0) (write mode). this is the data that is written into the device (msb first). bit 8-15 : data do(7:0) (read mode). this is the data that is read from the device (msb first). in multiple read/write comman ds further blocks of 8 clock periods will be added. when ms bit is ?0? the address used to read/write data remains the same for every block. when ms bit is ?1? the address used to read/write data is increased at every block. the function and the behavior of sdi and sdo remain unchanged. c s s pc s di s do rw ad5 ad4 ad 3 ad2 ad1 ad0 di7 di6 di5 di4 di 3 di2 di1 di0 do7 do6 do5 do4 do 3 do2 do1 do0 m s am10129v1
LIS2DH digital interfaces doc id 022516 rev 1 27/49 5.2.1 spi read figure 7. spi read protocol the spi read command is performed with 16 clock pulses. multiple byte read command is performed adding blocks of 8 clock pulses at the previous one. bit 0 : read bit. the value is 1. bit 1 : ms bit. when 0 do not increment address, when 1 increment address in multiple reading. bit 2-7 : address ad(5:0). this is the address field of the indexed register. bit 8-15 : data do(7:0) (read mode). this is the da ta that will be read from the device (msb first). bit 16-... : data do(...-8). further da ta in multiple byte reading. figure 8. multiple bytes spi read protocol (2 bytes example) c s s pc s di s do rw do7 do6 do5 do4 do 3 do2 do1 do0 ad5 ad4 ad 3 ad2 ad1 ad0 m s am101 3 0v1 c s s pc s di s do rw do 7 do 6 do 5 do 4 do 3 do 2 do 1 do 0 ad5 ad4 ad 3 ad2 ad1 ad0 do 15 do 14 do 1 3 do 12 do 11 do 10 d o9 d o 8 m s am101 3 1v1
digital interfaces LIS2DH 28/49 doc id 022516 rev 1 5.2.2 spi write figure 9. spi write protocol the spi write command is performed with 16 cloc k pulses. multiple by te write command is performed adding blocks of 8 clock pulses at the previous one. bit 0 : write bit. the value is 0. bit 1 : ms bit. when 0 do not increment address, when 1 increment address in multiple writing. bit 2 -7 : address ad(5:0). this is the address field of the indexed register. bit 8-15 : data di(7:0) (write mode). this is the data that is written inside the device (msb first). bit 16-... : data di(...-8). further data in multiple byte writing. figure 10. multiple bytes spi write protocol (2 bytes example) 5.2.3 spi read in 3-wires mode 3-wires mode is entered by sett ing to ?1? bit sim (spi serial interface mode selection) in ctrl_reg4. c s s pc s di rw di7 di6 di5 di4 di 3 di 2 di 1 di 0 ad5 ad 4 ad 3 ad2 ad 1 ad0 m s am101 3 2v1 c s s pc s di rw ad5 ad4 ad 3 ad2 ad1 ad 0 di 7 d i6 di 5 d i4 di 3 di 2 di 1 di 0 di 15 d i1 4 di 1 3 di12 di 11 di 10 di 9 di 8 m s am101 33 v1
LIS2DH digital interfaces doc id 022516 rev 1 29/49 figure 11. spi read protocol in 3-wires mode the spi read command is performed with 16 clock pulses: bit 0 : read bit. the value is 1. bit 1 : ms bit. when 0 do not increment address, when 1 increment address in multiple reading. bit 2-7 : address ad(5:0). this is the address field of the indexed register. bit 8-15 : data do(7:0) (read mode). this is the data that is read from the device (msb first). multiple read comman d is also available in 3-wires mode. c s s pc s di/o rw do7 do6 do5 do4 do 3 do 2 do 1 do 0 ad5 ad 4 ad 3 ad2 ad1 ad 0 m s am101 3 4v1
register mapping LIS2DH 30/49 doc id 022516 rev 1 6 register mapping the table given below provides a listing of the 8 bit registers embedded in the device and the related addresses: table 19. register address map name type register address default comment hex binary reserved 00 - 06 reserved status_reg_aux r 07 000 0111 reserved r 08-0b reserved out_temp_l r 0c 000 1100 output out_temp_h r 0d 000 1101 output int_counter_reg r 0e 000 1110 who_am_i r 0f 000 1111 00110011 dummy register reserved 10 - 1e reserved temp_cfg_reg rw 1f 001 1111 ctrl_reg1 rw 20 010 0000 00000111 ctrl_reg2 rw 21 010 0001 00000000 ctrl_reg3 rw 22 010 0010 00000000 ctrl_reg4 rw 23 010 0011 00000000 ctrl_reg5 rw 24 010 0100 00000000 ctrl_reg6 rw 25 010 0101 00000000 reference rw 26 010 0110 00000000 status_reg2 r 27 010 0111 00000000 out_x_l r 28 010 1000 output out_x_h r 29 010 1001 output out_y_l r 2a 010 1010 output out_y_h r 2b 010 1011 output out_z_l r 2c 010 1100 output out_z_h r 2d 010 1101 output fifo_ctrl_reg rw 2e 010 1110 00000000 fifo_src_reg r 2f 010 1111 0010000 int1_cfg rw 30 011 0000 00000000 int1_source r 31 011 0001 00000000 int1_ths rw 32 011 0010 00000000 int1_duration rw 33 011 0011 00000000
LIS2DH register mapping doc id 022516 rev 1 31/49 registers marked as reserved or not listed in the table above must not be changed. the writing to those registers may cause permanent damages to the device. the content of the registers that are loaded at boot should not be changed. they contain the factory calibration values. their content is automatically restored when the device is powered-up. boot procedure is co mplete about 5 milliseconds just after powered up the device. int2_cfg rw 34 011 0100 00000000 int2_source r 35 011 0101 00000000 int2_ths rw 36 011 0110 00000000 int2_duration rw 37 011 0111 00000000 click_cfg rw 38 011 1000 00000000 click_src r 39 011 1001 00000000 click_ths rw 3a 011 1010 00000000 time_limit rw 3b 011 1011 00000000 time_latency rw 3c 011 1100 00000000 time_window rw 3d 011 1101 00000000 act_ths rw 3e 011 1110 00000000 act_dur rw 3f 011 1111 00000000 table 19. register address map (continued) name type register address default comment hex binary
registers description LIS2DH 32/49 doc id 022516 rev 1 7 registers description 7.1 status_aux (07h) 7.2 out_temp_l (0ch), out_temp_h (0dh) temperature sensor data. refer to section 2.11: temperature sensor for details on how to enable and read the temperature sensor output data. 7.3 int_counter (0eh) 7.4 who_am_i (0fh) device identification register. 7.5 temp_cfg_reg (1fh) table 20. status_reg_aux register -- tor -- -- -- tda -- -- table 21. status_reg_aux description tor temperature data overrun. default value: 0 (0: no overrun has occurred; 1: a new temperature data has overwritten the previous one) tda temperature new data available. default value: 0 (0: a new temperature data is not yet available; 1: a new temperature data is available) table 22. int_counter register ic7ic6ic5ic4ic3ic2ic1ic0 table 23. who_am_i register 00110011 table 24. temp_cfg_reg register temp_en1temp_en0000000
LIS2DH registers description doc id 022516 rev 1 33/49 7.6 ctrl_reg1 (20h) odr<3:0> is used to set power mode and odr selection. in the following table are reported all frequen cy resulting in combination of odr<3:0> table 25. temp_cfg_reg description temp_en[1-0] temperature sensor (t) enable. default value: 00 (00: t disabled; 11: t enabled) table 26. ctrl_reg1 register odr3 odr2 odr1 odr0 lpen zen yen xen table 27. ctrl_reg1 description odr3-0 data rate selection. default value: 00 (0000:power down mode; others: refer to ta b l e 2 8 , "data rate configuration") lpen low power mode enable. default value: 0 (0: normal mode, 1: low power mode) (refer to section 2.6.3: high resolution, normal mode, low power mode ) zen z axis enable. default value: 1 (0: z axis disabled; 1: z axis enabled) ye n y axis enable. default value: 1 (0: y axis disabled; 1: y axis enabled) xen x axis enable. default value: 1 (0: x axis disabled; 1: x axis enabled) table 28. data rate configuration odr3 odr2 odr1 odr0 power mode selection 0 0 0 0 power down mode 0 0 0 1 hr / normal / low power mode (1 hz) 0 0 1 0 hr / normal / low power mode (10 hz) 0 0 1 1 hr / normal / low power mode (25 hz) 0 1 0 0 hr / normal / low power mode (50 hz) 0 1 0 1 hr / normal / low power mode (100 hz) 0 1 1 0 hr / normal / low power mode (200 hz) 0 1 1 1 hr/ normal / low power mode (400 hz) 1 0 0 0 low power mode (1.620 khz) 1 0 0 1 hr/ normal (1.344 khz); low power mode (5.376 khz)
registers description LIS2DH 34/49 doc id 022516 rev 1 7.7 ctrl_reg2 (21h) 7.8 ctrl_reg3 (22h) table 29. ctrl_reg2 register hpm1 hpm0 hpcf2 hpcf1 fds hpclick hpis2 hpis1 table 30. ctrl_reg2 description hpm1 -hpm0 high pass filter mode selection. default value: 00 refer to table 31, "high pass filter mode configuration" hpcf2 - hpcf1 high pass filter cut off frequency selection fds filtered data selection. default value: 0 (0: internal filter bypassed; 1: data from in ternal filter sent to output register and fifo) hpclick high pass filter enabled for click function. (0: filter bypassed; 1: filter enabled) hpis2 high pass filter enabled for aoi function on interrupt 2, (0: filter bypassed; 1: filter enabled) hpis1 high pass filter enabled for aoi function on interrupt 1, (0: filter bypassed; 1: filter enabled) table 31. high pass filter mode configuration hpm1 hpm0 high pass filter mode 0 0 normal mode (reset reading reference/datacapture (26h) register) 0 1 reference signal for filtering 1 0 normal mode 1 1 autoreset on interrupt event table 32. ctrl_reg3 register i1_click i1_aoi1 i1_aoi2 i1_drdy1 i1_drdy2 i1_wtm i1_overrun -- table 33. ctrl_reg3 description i1_click click interrupt on int1 pin. default value 0. (0: disable; 1: enable) i1_aoi1 aoi1 interrupt on int1 pn. default value 0. (0: disable; 1: enable)
LIS2DH registers description doc id 022516 rev 1 35/49 7.9 ctrl_reg4 (23h) i1_aoi2 aoi2 interrupt on int1 pin. default value 0. (0: disable; 1: enable) i1_drdy1 drdy1 interrupt on int1 pin. default value 0. (0: disable; 1: enable) i1_drdy2 drdy2 interrupt on int1 pin. default value 0. (0: disable; 1: enable) i1_wtm fifo watermark interrupt on int1 pin. default value 0. (0: disable; 1: enable) i1_overrun fifo overrun interrupt on int1 pin. default value 0. (0: disable; 1: enable) table 33. ctrl_reg3 description (continued) table 34. ctrl_reg4 register bdu ble (1) 1. ble function can be activated only in high resolution mode fs1 fs0 hr st1 st0 sim table 35. ctrl_reg4 description bdu block data update. default value: 0 (0: continuos update; 1: output regist ers not updated until msb and lsb have been read) ble big/little endian data selection. default value:0; (0: data lsb at lower address; 1: data msb at lower address) the ble function can be activated only in high resolution mode fs1-fs0 full scale selection. default value: 00 (00: +/- 2g; 01: +/- 4g; 10: +/- 8g; 11: +/- 16g) hr operating mode selection (refer to section 2.6.3: high resolution, normal mode, low power mode ) st1-st0 self test enable. default value: 00 (00: self test disabled; other: see ta b l e ) sim spi serial interface mode selection. default value: 0 (0: 4-wire interface; 1: 3-wire interface). table 36. self test mode configuration st1 st0 self test mode 0 0 normal mode 01self test 0 10self test 1 11--
registers description LIS2DH 36/49 doc id 022516 rev 1 7.10 ctrl_reg5 (24h) 7.11 ctrl_reg6 (25h) table 37. ctrl_reg5 register boot fifo_en -- -- lir_int1 d4d_int1 lir_int2 d4d_int2 table 38. ctrl_reg5 description boot reboot memory content. default value: 0 (0: normal mode; 1: reboot memory content) fifo_en fifo enable. default value: 0 (0: fifo disable; 1: fifo enable) lir_int1 latch interrupt request on int1_src r egister, with int1_src register cleared by reading int1_src itself. default value: 0. (0: interrupt request not latched; 1: interrupt request latched) d4d_int1 4d enable: 4d detection is enabled on int1 pin when 6d bit on int1_cfg is set to 1. lir_int2 latch interrupt request on int2_src r egister, with int2_src register cleared by reading int2_src itself. default value: 0. (0: interrupt request not latched; 1: interrupt request latched) d4d_int2 4d enable: 4d detection is enabled on int2 pin when 6d bit on int2_cfg is set to 1. table 39. ctrl_reg6 register i2_clicken i2_int1 i2_int2 boot_i2 p2_act - - h_lactive - table 40. ctrl_reg6 description i2_clicken click interrupt on int2 pin. default value: 0 (0: disable; 1: enable) i2_int1 interrupt 1 function enabl ed on int2 pin. default value: 0 (0: function disable; 1: function enable) i2_int2 interrupt 2 function enabl ed on int2 pin. default value: 0 (0: function disable; 1: function enable) boot_i2 boot on int2 pin enable. default value: 0 (0: disable; 1:enable) p2_act activity interrupt enable on int2 pin. default value: 0. (0: disable; 1:enable) h_lactive interrupt active. default value: 0. (0: interrupt active high; 1: interrupt active low)
LIS2DH registers description doc id 022516 rev 1 37/49 7.12 reference/datacapture (26h) 7.13 status_reg (27h) 7.14 out_x_l (28h), out_x_h (29h) x-axis acceleration data. the value is expressed as two?s complement left justified. please refer to section 2.6.3: high resolution, normal mode, low power mode . table 41. reference register ref7 ref6 ref5 ref4 ref3 ref2 ref1 ref0 table 42. reference register description ref 7-ref0 reference value for interr upt generation. default value: 0 table 43. status register zyxor zor yor xor zyxda zda yda xda table 44. status register description zyxor x, y and z axis data overrun. default value: 0 (0: no overrun has occurred; 1: a new set of data has overwritten the previous ones) zor z axis data overrun. default value: 0 (0: no overrun has occurred; 1: a new data for the z-axis has overwritten the previous one) yor y axis data overrun. default value: 0 (0: no overrun has occurred; 1: a new data for the y-axis has overwritten the previous one) xor x axis data overrun. default value: 0 (0: no overrun has occurred; 1: a new data for the x-axis has overwritten the previous one) zyxda x, y and z axis new data available. default value: 0 (0: a new set of data is not yet availabl e; 1: a new set of data is available) zda z axis new data available. default value: 0 (0: a new data for the z-axis is not yet available; 1: a new data for the z-axis is available) yda y axis new data available. default value: 0 (0: a new data for the y-axis is not yet available; 1: a new data for the y-axis is available)
registers description LIS2DH 38/49 doc id 022516 rev 1 7.15 out_y_l (2ah), out_y_h (2bh) y-axis acceleration data. the value is expr essed as two?s complement left justified. please refer to section 2.6.3: high resolution, normal mode, low power mode . 7.16 out_z_l (2ch), out_z_h (2dh) z-axis acceleration data. th e value is expressed as two?s complement left justified. please refer to section 2.6.3: high resolution, normal mode, low power mode . 7.17 fifo_ctrl_reg (2eh) 7.18 fifo_src_reg (2fh) table 45. fifo_ctrl_reg register fm1 fm0 tr fth4 fth3 fth2 fth1 fth0 table 46. fifo_ctrl_reg register description fm1-fm0 fifo mode selection. default value: 00 (see ta bl e 4 7 ) tr trigger selection. default value: 0 0: trigger event allows to trigger signal on int1 1: trigger event allows to trigger signal on int2 fth4:0 default value: 0 table 47. fifo mode configuration fm1 fm0 fifo mode 0 0 bypass mode 01fifo mode 1 0 stream mode 1 1 trigger mode table 48. fifo_src register wtm ovrn_fifo empty fss4 fss3 fss2 fss1 fss0
LIS2DH registers description doc id 022516 rev 1 39/49 7.19 int1_cfg (30h) content of this register is loaded at boot. write operation at this address is possible only after system boot. difference between aoi-6d = ?01? and aoi-6d = ?11?. aoi-6d = ?01? is movement recognition. an interrupt is generate when orientation move from unknown zone to known zone. the interrupt signal stay for a duration odr. aoi-6d = ?11? is direction recognition. an inte rrupt is generate when orientation is inside a known zone. the interrupt signal stay untill orientation is inside the zone. table 49. int1_cfg register aoi 6d zhie/ zupe zlie/ zdowne yhie/ yupe ylie/ ydowne xhie/ xupe xlie/ xdowne table 50. int1_cfg description aoi and/or combination of interrupt events. default value: 0. refer to table 51, "interrupt mode" 6d 6 direction detection function enabled. default value: 0. refer to table 51, "interrupt mode" zhie/ zupe enable interrupt generation on z high event or on direction recognition. default value: 0 (0: disable interrupt request;1: enable interrupt request) zlie/ zdowne enable interrupt generation on z low event or on direction recognition. default value: 0 (0: disable interrupt request;1: enable interrupt request) yhie/ yupe enable interrupt generation on y high event or on direction recognition. default value: 0 (0: disable interrupt request; 1: enable interrupt request.) ylie/ ydowne enable interrupt generation on y low event or on direction recognition. default value: 0 (0: disable interrupt request; 1: enable interrupt request.) xhie/ xupe enable interrupt generation on x high event or on direction recognition. default value: 0 (0: disable interrupt request; 1: enable interrupt request.) xlie/xdown e enable interrupt generation on x low event or on direction recognition. default value: 0 (0: disable interrupt request; 1: enable interrupt request.) table 51. interrupt mode aoi 6d interrupt mode 0 0 or combination of interrupt events 0 1 6 direction move ment recognition 1 0 and combination of interrupt events 1 1 6 direction position recognition
registers description LIS2DH 40/49 doc id 022516 rev 1 7.20 int1_src (31h) interrupt 1 source register. read only register. reading at this address clears int1_src ia bit (and the interrupt signal on int 1 pin) and allows the refreshment of data in the int1_src register if the latched option was chosen. 7.21 int1_ths (32h) table 52. int1_src register 0 ia zhzlyhylxhxl table 53. int1_src description ia interrupt active. default value: 0 (0: no interrupt has been generated; 1: one or more interrupts have been generated) zh z high. default value: 0 (0: no interrupt, 1: z high event has occurred) zl z low. default value: 0 (0: no interrupt; 1: z low event has occurred) yh y high. default value: 0 (0: no interrupt, 1: y high event has occurred) yl y low. default value: 0 (0: no interrupt, 1: y low event has occurred) xh x high. default value: 0 (0: no interrupt, 1: x high event has occurred) xl x low. default value: 0 (0: no interrupt, 1: x low event has occurred) table 54. int1_ths register 0 ths6 ths5 ths4 ths3 ths2 ths1 ths0 table 55. int1_ths description ths6 - ths0 interrupt 1 threshold. default value: 000 0000 1lsb = 16mg @fs=2g 1lsb = 32 mg @fs=4g 1lsb = 62 mg @fs=8g 1lsb = 186 mg @fs=16g
LIS2DH registers description doc id 022516 rev 1 41/49 7.22 int1_duration (33h) d6 - d0 bits set the minimum duration of the interrupt 2 event to be recognized. duration steps and maximum values depend on the odr chosen. duration time is measured in n/odr, where n is the content of the duration register. 7.23 int2_cfg (34h) table 56. int1_duration register 0 d6d5d4d3d2d1d0 table 57. int1_duration description d6 - d0 duration value. default value: 000 0000 1 lsb = 1/odr table 58. int2_cfg register aoi 6d zhie zlie yhie ylie xhie xlie table 59. int2_cfg description aoi and/or combination of interrupt events. default value: 0. (see table below) 6d 6 direction detection function enab led. default value: 0. refer to table 60, "interrupt mode" zhie enable interrupt generation on z high event. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) zlie enable interrupt generation on z low event. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value lower than preset threshold) yhie enable interrupt generation on y high event. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) ylie enable interrupt generation on y low event. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value lower than preset threshold)
registers description LIS2DH 42/49 doc id 022516 rev 1 content of this register is loaded at boot. write operation at this address is possible only after system boot. difference between aoi-6d = ?01? and aoi-6d = ?11?. aoi-6d = ?01? is movement recognition. an interrupt is generate when orientation move from unknown zone to known zone. the interrupt signal stay for a duration odr. aoi-6d = ?11? is direction recognition. an inte rrupt is generate when orientation is inside a known zone. the interrupt signal stay untill orientation is inside the zone. 7.24 int2_src (35h) xhie enable interrupt generation on x high event. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) xlie enable interrupt generation on x low event. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value lower than preset threshold) table 60. interrupt mode aoi 6d interrupt mode 0 0 or combination of interrupt events 0 1 6 direction movement recognition 1 0 and combination of interrupt events 1 1 6 direction position recognition table 59. int2_cfg description (continued) table 61. int2_src register 0 ia zhzlyhylxhxl table 62. int2_src description ia interrupt active. default value: 0 (0: no interrupt has been generated; 1: one or more interrupts have been generated) zh z high. default value: 0 (0: no interrupt, 1: z high event has occurred) zl z low. default value: 0 (0: no interrupt; 1: z low event has occurred) yh y high. default value: 0 (0: no interrupt, 1: y high event has occurred)
LIS2DH registers description doc id 022516 rev 1 43/49 interrupt 2 source register. read only register. reading at this address clears int2_src ia bit (and the interrupt signal on int 2 pin) and allows the refreshment of data in the int2_src register if the latched option was chosen. 7.25 int2_ths (36h) 7.26 int2_duration (37h) d6 - d0 bits set the minimum duration of the interrupt 2 event to be recognized. duration time steps and maximum values depend on the odr chosen. yl y low. default value: 0 (0: no interrupt, 1: y low event has occurred) xh x high. default value: 0 (0: no interrupt, 1: x high event has occurred) xl x low. default value: 0 (0: no interrupt, 1: x low event has occurred) table 62. int2_src description (continued) table 63. int2_ths register 0 ths6 ths5 ths4 ths3 ths2 ths1 ths0 table 64. int2_ths description ths6 - ths0 interrupt 2 threshold. default value: 000 0000 1lsb = 16mg @fs=2g; 1lsb = 32mg @fs=4g; 1lsb = 62mg @fs=8g; 1lsb = 186mg @ fs=16g table 65. int2_duration register 0 d6d5d4d3d2d1d0 table 66. int2_duration description d6-d0 duration value. default value: 000 0000 1 lsb = 1/odr (1) 1. duration time is measured in n/odr, where n is the content of the duration register.
registers description LIS2DH 44/49 doc id 022516 rev 1 7.27 click_cfg (38h) 7.28 click_src (39h) table 67. click_cfg register -- -- zd zs yd ys xd xs table 68. click_cfg description zd enable interrupt double tap-tap on z axis. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) zs enable interrupt single tap-tap on z axis. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) yd enable interrupt double tap-tap on y axis. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) ys enable interrupt single tap-tap on y axis. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) xd enable interrupt double tap-tap on x axis. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) xs enable interrupt single tap-tap on x axis. default value: 0 (0: disable interrupt request; 1: enable interrupt request on measured accel. value higher than preset threshold) table 69. click_src register ia dclick sclick sign z y x table 70. click_src description ia interrupt active. default value: 0 (0: no interrupt has been generated; 1: one or more interrupts have been generated) dclick double click-click enable. default value: 0 (0:double click-click detection disable, 1: double tap-tap detection enable) stap single click-click enable. default value: 0 (0:single click-click detection disable, 1: sin- gle click-click detection enable) sign click-click sign. 0: positive detection, 1: negative detection z z click-click detection. default value: 0 (0: no interrupt, 1: z high event has occurred)
LIS2DH registers description doc id 022516 rev 1 45/49 7.29 click_ths (3ah) 7.30 time_limit (3bh) 7.31 time_latency (3ch) 7.32 time window(3dh) y y click-click detection. default value: 0 (0: no interrupt, 1: y high event has occurred) x x click-click detection. default value: 0 (0: no interrupt, 1: x high event has occurred) table 70. click_src description (continued) table 71. click_ths register - ths6 ths5 ths4 ths3 ths2 ths1 ths0 table 72. click_src description ths6-ths0 click-click threshold. default value: 000 0000 table 73. time_limit register - tli6 tli5 tli4 tli3 tli2 tli1 tli0 table 74. time_limit description tli7-tli0 click-click time limit. default value: 000 0000 table 75. time_latency register tla7 tla6 tla5 tla4 tla3 tla2 tla1 tla0 table 76. time_latency description tla7-tla0 click-click time latency. default value: 000 0000 table 77. time_window register tw7tw6tw5tw4tw3tw2tw1tw0
registers description LIS2DH 46/49 doc id 022516 rev 1 7.33 act_ths(3eh) 7.34 act_dur (3fh) table 78. time_window description tw7-tw0 click-click time window table 79. time_window register -- acth6 acth5 acth4 acth3 acth2 acth1 acth0 table 80. time_window description acth[6-0] sleep to wake, return to sleep activation threshold in low power mode 1lsb = 16mg @fs=2g 1lsb = 32 mg @fs=4g 1lsb = 62 mg @fs=8g 1lsb = 186 mg @fs=16g table 81. act_dur register actd7 actd6 actd5 actd4 actd3 actd2 actd1 actd0 table 82. act_dur description actd[7-0] sleep to wake, return to sleep duration 1lsb = (8*1[lsb]+1)/odr
LIS2DH package information doc id 022516 rev 1 47/49 8 package information in order to meet environmental requirements, st offers these devices in different grades of ecopack ? packages, depending on their level of environmental compliance. ecopack ? specifications, grade definitions and product status are available at: www.st.com. ecopack is an st trademark. figure 12. lga-14 2x2x1 mechanical drawing table 83. lga-14 2x2x1 mechanical dimensions ref. min. typ. max. a1 1 a2 0.785 a3 0.200 d1 1.850 2.000 2.150 e1 1.850 2.000 2.150 l1 0.900 l2 1.250 n1 0.350 t1 0.275 t2 0.200 p1 0.850 p2 0.850 d0.150 m0.100 k0.050 8 224765_a
revision history LIS2DH 48/49 doc id 022516 rev 1 9 revision history table 84. document revision history date revision changes 25-nov-2011 1 initial release.
LIS2DH doc id 022516 rev 1 49/49 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a parti cular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. unless expressly approved in writing by two authorized st representatives, st products are not recommended, authorized or warranted for use in milita ry, air craft, space, life saving, or life sustaining applications, nor in products or systems where failure or malfunction may result in personal injury, death, or severe property or environmental damage. st products which are not specified as "automotive grade" may only be used in automotive applications at user?s own risk. resale of st products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or registered trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2011 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of LIS2DH

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X